<include file="App/Admin/View/Public/left.html"/>
<div class="admin">
	<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">产品类别列表</strong></div>
    <div class="padding border-bottom">
      <ul class="search">
        <li>
 		  <a href="{:U('Ptype/insert')}"><button type="button" class="button border-yellow"><span class="icon-plus-square-o"></span> 添加类别</button></a>
          <!--<button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 全选</button>
          <button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>-->
        </li>
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th>类别名称</th>
		 <th>上级类别</th>
        <th>排序</th>
        <th>操作</th>       
      </tr> 
	  <volist name="list" id="vo">     
        <tr>
          <td>{$vo.tname}</td>
          <td>{:W("Ptype/getnamebypid",array('pid'=>$vo['pid'],'tid'=>$vo['tid']))}</td> 
		  <td>{$vo.sort}</td>   
          <td>
		  	<div class="button-group"> 
				<a class="button border-blue" href="{:U('Ptype/insert',array('tid'=>$vo['tid']))}"><span class="icon-edit text-blue"></span> 修改</a> 
				<a class="button border-red" href="{:U('Ptype/delete',array('tid'=>$vo['tid']))}"><span class="icon-trash-o"></span> 删除</a> 
			</div>
		  </td>
        </tr>
		</volist>
    </table>
  </div>
  <div class="list-page"> <ul>{$page}</ul></div>
